package cn.systemManage.service;

import cn.systemManage.bean.UserBean;
import cn.util.PageBean;

public interface UserService {
	/**
	 * 用户登录
	 * 
	 * @param userBean
	 * @return
	 * @throws Exception
	 */
	public String login(UserBean userBean) throws Exception;

	/**
	 * 取user分页数据
	 * 
	 * @param userBean
	 * @return
	 * @throws Exception
	 */
	public PageBean getPageBean(UserBean userBean) throws Exception;
	
	/**
	 * 用于修改  根据id 取信息
	 * @param userBean
	 * @throws Exception
	 *
	 * @author  zhanghongliang
	 * @Date    2011-4-15下午01:55:52
	 */
	public UserBean findUserBeanById(UserBean userBean)throws Exception;
	
	/**
	 * 保存用户
	 * @param userBean
	 * @return              1  保存成功；2 用户名已经存在
	 * @throws Exception
	 *
	 * @author  zhanghongliang
	 * @Date    2011-4-15下午01:59:31
	 */
	public int saveUserBean(UserBean userBean)throws Exception;

	/**
	 * 删除用户
	 * @param id 
	 * @return    1   成功；2 失败
	 * @throws Exception
	 *
	 * @author  zhanghongliang
	 * @Date    2011-4-15下午02:44:09
	 */
	public int deleteUserBean(Integer id)throws Exception;
}
